﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AccompanyCabinet.Model
{
    public class AllDeviceBoxDetail
    {
        /// <summary>
        /// 设备详情
        /// </summary>
        public DeviceInfo deviceBoxDetailto { get; set; }
        /// <summary>
        /// 箱子详情列表
        /// </summary>
        public List<DBoxList> dBoxLists { get; set; }
        /// <summary>
        /// 价格详情列表
        /// </summary>
        public List<CostDetail> priceDetails { get; set; }
    }
    /// <summary>
    /// 柜子详情
    /// </summary>
    public class DeviceInfo
    {
        /// <summary>
        /// 设备id
        /// </summary>
        public int DId { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 在线状态
        /// </summary>
        public string LineState { get; set; }
        /// <summary>
        /// 设备存储类型 ; Fix表示固定版本，Flow表示流动版本
        /// </summary>
        public string UseTypeNo { get; set; }
        /// <summary>
        /// 设备柜子类型 ;One表示只有一种箱子，Two表示大小两种箱子，Three表示大中小三种箱子。。。
        /// </summary>
        public string Type { get; set; }
        /// <summary>
        /// 到期时间
        /// </summary>
        public DateTime ExpireTime { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }
    }
    /// <summary>
    /// 箱子规格锁板
    /// </summary>
    public class DBoxList
    {
        /// <summary>
        /// 箱子id
        /// </summary>
        public int id { get; set; }
        /// <summary>
        /// 箱子编号
        /// </summary>
        public int Num { get; set; }
        /// <summary>
        /// 锁板id
        /// </summary>
        public int LockId { get; set; }
        /// <summary>
        /// 锁板编号
        /// </summary>
        public int LockNum { get; set; }
        /// <summary>
        /// 箱子规格； Big表示大；Mid表示中；Small表示小
        /// </summary>
        public string TypeNo { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public string UpdateTime { get; set; }
        /// <summary>
        /// 箱子状态； Use表示使用；Unuse表示未用；Occu表示占用
        /// </summary>
        public string StatusNo { get; set; }
    }
    /// <summary>
    /// 箱子规格详情分页
    /// </summary>
    public class DBoxListpage
    {
        /// <summary>
        /// 总页数
        /// </summary>
        public int PageCount { get; set; }
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; }
        /// <summary>
        /// 页总数
        /// </summary>
        public int PageSize { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public List<DBoxList> LsList { get; set; }
        /// <summary>
        /// 总记录数
        /// </summary>
        public int TotalRows { get; set; }
    }
    //public class PriceList
    //{
    ///// <summary>
    ///// 大箱子数据
    ///// </summary>
    //public List<CostDetail> BpriceD { get; set; }
    ///// <summary>
    ///// 中箱子数据
    ///// </summary>
    //public List<CostDetail> MpriceD { get; set; }
    ///// <summary>
    ///// 小箱子数据
    ///// </summary>
    //public List<CostDetail> SpriceD { get; set; }
    //}
    public class CostDetail
    {
        /// <summary>
        /// 设备价格id
        /// </summary>
        public int DpId { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 时长
        /// </summary>
        public int Duration { get; set; }
        /// <summary>
        /// 箱子规格； Big表示大；Mid表示中；Small表示小
        /// </summary>
        public string TypeNo { get; set; }
        /// <summary>
        /// 费用类型  N表示正常费用（Normal）  E表示超时费用（Expire）
        /// </summary>
        public string PriceType { get; set; }
    }
    public class CostTDetailto
    {
        /// <summary>
        /// 费用模板id
        /// </summary>
        public int piId { get; set; }
        /// <summary>
        /// 费用详情（json格式）
        /// </summary>
        public CostDetail[] priceJson { get; set; }
    }

    public class InComeModel
    {
        /// <summary>
        /// 箱号
        /// </summary>
        public int Num { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public string TypeNo { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public decimal Price { get; set; }
    }
    public class InComeModelpage
    {
        /// <summary>
        /// 总页数
        /// </summary>
        public int PageCount { get; set; }
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; }
        /// <summary>
        /// 页总数
        /// </summary>
        public int PageSize { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public List<InComeModel> LsList { get; set; }
        /// <summary>
        /// 总记录数
        /// </summary>
        public int TotalRows { get; set; }
    }
    public class storagePage
    {
        /// <summary>
        /// 总页数
        /// </summary>
        public int PageCount { get; set; }
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; }
        /// <summary>
        /// 页总数
        /// </summary>
        public int PageSize { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public List<StorageModel> LsList { get; set; }
        /// <summary>
        /// 总记录数
        /// </summary>
        public int TotalRows { get; set; }
    }
    public class StorageModel
    {
        /// <summary>
        /// 箱子id
        /// </summary>
        public int BiId { get; set; }
        /// <summary>
        /// 箱号
        /// </summary>
        public int Num { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string TypeNo { get; set; } 
        /// <summary>
        /// 存储状态
        /// </summary>
        public string StatusNo { get; set; }
    }
    public class SearchOrderModel
    {
        public int BurId { get; set; }
        public int Num { get; set; }
        public decimal Price { get; set; }
        public string StartTime { get; set; }
    }

    public class BoxIncomeStpage
    {
        /// <summary>
        /// 总页数
        /// </summary>
        public int PageCount { get; set; }
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; }
        /// <summary>
        /// 页总数
        /// </summary>
        public int PageSize { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public List<BoxIncomeSt> LsList { get; set; }
        /// <summary>
        /// 总记录数
        /// </summary>
        public int TotalRows { get; set; }
    }
    public class BoxIncomeSt
    {
        /// <summary>
        /// 箱号
        /// </summary>
        public int Num { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrderNum { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 时长
        /// </summary>
        public int Duration { get; set; }
        /// <summary>
        /// 是否超时N正常E超时
        /// </summary>
        public string PayType { get; set; }
        /// <summary>
        /// 付款方式
        /// </summary>
        public string Payment { get; set; }
    }
}
